package de.karlNet.sambamanager.ldapModel.dto;

import java.util.ArrayList;
import java.util.Arrays;

import de.karlNet.sambamanager.ldapModel.LdapGroup;
import de.karlNet.sambamanager.ldapModel.LdapUser;

public class LdapUserCreationDTO {
	private LdapUser ldapUser;
	private ArrayList<LdapGroup> memberShips = new ArrayList<LdapGroup>();

	public LdapUserCreationDTO() {
		this.ldapUser = new LdapUser();
	}

	public LdapUser getLdapUser() {
		return ldapUser;
	}
	
	public void setMemberships(LdapGroup[] groups) {
		this.memberShips = new ArrayList<LdapGroup>(Arrays.asList(groups));
	}
	
	public ArrayList<LdapGroup> getMemberShips() {
		return memberShips;
	}

	public void setLdapUser(LdapUser ldapUser) {
		this.ldapUser = ldapUser;
	}
}
